xen.git
19 years agoMake Python tools (i.e., xend and pygrub) conditionally compiled.
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:46:20 +0000 (16:46 +0000)]
Make Python tools (i.e., xend and pygrub) conditionally compiled.

Config option is PYTHON_TOOLS, default is 'y'.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years ago[XEN] Shadow: ignore shadow operations on dying domains
Tim Deegan [Tue, 6 Mar 2007 15:02:20 +0000 (15:02 +0000)]
[XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux x86/64: No need to pre-allocate all fixmap pagetables:
kfraser@localhost.localdomain [Tue, 6 Mar 2007 13:41:05 +0000 (13:41 +0000)]
linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: more flexibility in gathering data from /proc/cpuinfo
kfraser@localhost.localdomain [Tue, 6 Mar 2007 11:53:37 +0000 (11:53 +0000)]
xend: more flexibility in gathering data from /proc/cpuinfo

Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[SVM] Clear VMCB's EFER.LME when guest disables paging
Travis Betak [Mon, 5 Mar 2007 22:22:21 +0000 (16:22 -0600)]
[SVM] Clear VMCB's EFER.LME when guest disables paging

Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
Travis Betak [Mon, 5 Mar 2007 22:21:50 +0000 (16:21 -0600)]
[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode

This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Cleanup guest writes to EFER
Travis Betak [Mon, 5 Mar 2007 22:21:11 +0000 (16:21 -0600)]
[SVM] Cleanup guest writes to EFER

19 years ago[SVM] Return the shadow EFER value on guest EFER reads.
Travis Betak [Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)]
[SVM] Return the shadow EFER value on guest EFER reads.

Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
Travis Betak [Mon, 5 Mar 2007 22:17:25 +0000 (16:17 -0600)]
[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.

The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).
Christian Limpach [Mon, 5 Mar 2007 22:42:13 +0000 (22:42 +0000)]
[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 19:22:21 +0000 (19:22 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoInstall pygrub according to auxbin rules.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 19:01:19 +0000 (19:01 +0000)]
Install pygrub according to auxbin rules.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMove ptsname module under tools/python.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:54:26 +0000 (18:54 +0000)]
Move ptsname module under tools/python.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux x86/64: Clean up mm initialisation a little.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:10:41 +0000 (18:10 +0000)]
linux x86/64: Clean up mm initialisation a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 16:43:12 +0000 (16:43 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: no pc speaker device in domUs
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:53:18 +0000 (15:53 +0000)]
linux: no pc speaker device in domUs
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: scan DMI early
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:46:33 +0000 (15:46 +0000)]
linux: scan DMI early

While shuffling quite a few things around, this gets us closer to
native, which clearly had a reason to do the DMI scan early.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64 2.6.18: reserve bootmem differently
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:08:17 +0000 (15:08 +0000)]
linux/x86-64 2.6.18: reserve bootmem differently

Do init memory reservation in a single step rather then piece-wise.
This is not really addressing a problem, but simplifies things a
little.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64 2.6.18: do away with pud_offset_k()
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:06:13 +0000 (15:06 +0000)]
linux/x86-64 2.6.18: do away with pud_offset_k()
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86_64 2.6.18: remove orig_ist
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:04:28 +0000 (15:04 +0000)]
linux/x86_64 2.6.18: remove orig_ist

orig_ist is bound to presence of a TSS, hence is meaningless on Xen
kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix crash in heap allocator when Xen 'zone' is empty.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:39:03 +0000 (14:39 +0000)]
Fix crash in heap allocator when Xen 'zone' is empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:20:26 +0000 (14:20 +0000)]
linux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
Former is safer (in case TIF_IO_BITMAP is out-of-sync with actual
existence of an I/O bitmap for this process) and more readable, and
probably results in faster code too.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Remove unnecessary locking from pcifront free_root_bus_devs().
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:09:19 +0000 (14:09 +0000)]
linux: Remove unnecessary locking from pcifront free_root_bus_devs().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
Ian Campbell [Mon, 5 Mar 2007 14:04:45 +0000 (14:04 +0000)]
[LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
instead of duplicating it in arch/i386/Kconfig.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agolinux 2.6.18: constify instances of 'struct file_operations'
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:00:05 +0000 (14:00 +0000)]
linux 2.6.18: constify instances of 'struct file_operations'
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: miscellaneous
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:57:11 +0000 (13:57 +0000)]
linux 2.6.18: miscellaneous

Various minor changes not fitting elsewhere and not warranting
separate patches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: assembly annotations
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:49:11 +0000 (13:49 +0000)]
linux 2.6.18: assembly annotations

This adds (or moves to the proper place) annotations paralleling those
added in native code in 2.6.18. To make this look less ugly, it
required moving around a few things.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: x8664_ksyms.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:33:42 +0000 (13:33 +0000)]
linux 2.6.18: eliminate Xen special: x8664_ksyms.c

The differences of arch/x86_64/kernel/x8664_ksyms-xen.c over its
native original are benign - the Xen special can therefore be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: alternative.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:32:50 +0000 (13:32 +0000)]
linux 2.6.18: eliminate Xen special: alternative.c

The sole (x86-64 specific) difference of
arch/i386/kernel/alternative-xen.c
over its native original can be eliminated by slightly adjusting
x86-64's make_readonly(), and the Xen special can then be removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: intel_cacheinfo.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:30:52 +0000 (13:30 +0000)]
linux 2.6.18: eliminate Xen special: intel_cacheinfo.c

arch/i386/kernel/cpu/intel_cacheinfo-xen.c is identical to
arch/i386/kernel/cpu/intel_cacheinfo.c, hence the Xen special can be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64: allow kernel init memory to be freed.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:27:51 +0000 (13:27 +0000)]
linux/x86-64: allow kernel init memory to be freed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoVM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:18:28 +0000 (13:18 +0000)]
VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
in VM record returned via Xen API.
This patch fixes typos in key name for these fields.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years ago[XEN] Shadow: fix predicate for when to use up-pointers
Tim Deegan [Mon, 5 Mar 2007 11:54:55 +0000 (11:54 +0000)]
[XEN] Shadow: fix predicate for when to use up-pointers
which was broken by the introduction of "pinnable" types
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Remove bogus file.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:23:34 +0000 (11:23 +0000)]
xen: Remove bogus file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:18:55 +0000 (11:18 +0000)]
Merge with xenppc-unstable.hg

19 years ago[xen] Fix deferred mmu op logic on invalidate shadow ldt.
Christian Limpach [Mon, 5 Mar 2007 11:17:52 +0000 (11:17 +0000)]
[xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:14:15 +0000 (11:14 +0000)]
Merge with xenppc-unstable.hg

19 years agoxen: Make dom0 domain builder behaviour match that of domU.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:52:54 +0000 (10:52 +0000)]
xen: Make dom0 domain builder behaviour match that of domU.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:37:01 +0000 (10:37 +0000)]
xen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Clean up mm_pin/unpin.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:26:45 +0000 (10:26 +0000)]
linux: Clean up mm_pin/unpin.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[domain builder] Remove unnecessary alignment of virtual address base.
Christian Limpach [Sat, 3 Mar 2007 20:42:38 +0000 (20:42 +0000)]
[domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: Some save/restore simplifications and cleanups.
Keir Fraser [Fri, 2 Mar 2007 23:01:36 +0000 (23:01 +0000)]
linux: Some save/restore simplifications and cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Keir Fraser [Fri, 2 Mar 2007 22:57:27 +0000 (22:57 +0000)]
x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix -xen build.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:57:24 +0000 (16:57 +0000)]
Fix -xen build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: xenbus dev write function resets packet data on *all* error conditions.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:29:48 +0000 (16:29 +0000)]
linux: xenbus dev write function resets packet data on *all* error conditions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Fix xenbus device write function.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:26:56 +0000 (16:26 +0000)]
linux: Fix xenbus device write function.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agotpm: Code style cleanups.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:15:28 +0000 (16:15 +0000)]
tpm: Code style cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[Linux] [TPM driver] Resume frontend after checkpointing
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:03:21 +0000 (16:03 +0000)]
[Linux] [TPM driver] Resume frontend after checkpointing

This patch implements TPM frontend driver resume after checkpointing a
domain. I also now let the front-end wait for the response from the
TPM until the response is there. A response must come due to the
strict request/response nature of the protocol, but the time until the
responses arrives depends on the type of operation that is executed by
the vTPM. Resending a request is not possible with this type of device.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agolinux: Use old-mode of save/restore for uniproc guests (it's faster).
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:00:22 +0000 (16:00 +0000)]
linux: Use old-mode of save/restore for uniproc guests (it's faster).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: allow use of split page table locks
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:59:12 +0000 (15:59 +0000)]
linux: allow use of split page table locks

This changes netback to use struct page's mapping field instead of the
index one, and the PageForeign logic the other way around. That way,
CONFIG_SPLIT_PTLOCK_CPUS doesn't have to be suppressed anymore for x86.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[PVFB][TOOLS] Terminate backend when frontend vanishes early
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:32:42 +0000 (15:32 +0000)]
[PVFB][TOOLS] Terminate backend when frontend vanishes early

Ensure the backend terminates when the frontend vanishes before the
connection is established.  This happens when the guest doesn't have
the devices.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
19 years agolinux/x86: avoid a re-definition warning on x86-64 and change i386
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:12:54 +0000 (15:12 +0000)]
linux/x86: avoid a re-definition warning on x86-64 and change i386
similarly to be consistent.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago.S->.o generation should depend on asm-offsets.h
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:10:54 +0000 (15:10 +0000)]
.S->.o generation should depend on asm-offsets.h

While object files generated from C sources should generally not
depend on asm-offsets.h, those generated from assembly sources
should.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxend: Fix startup when dom0 does not see all physical cpus.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 15:08:26 +0000 (15:08 +0000)]
xend: Fix startup when dom0 does not see all physical cpus.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: Catch VmError exception when creating a domain and do
kfraser@localhost.localdomain [Fri, 2 Mar 2007 14:57:18 +0000 (14:57 +0000)]
xend: Catch VmError exception when creating a domain and do
appropriate cleanup.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoacm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
kfraser@localhost.localdomain [Fri, 2 Mar 2007 14:42:25 +0000 (14:42 +0000)]
acm: Fix bogus domain_rcu_lock() invocations to rcu_unlock_domain().
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Remove a race condition in shadow mark_dirty code.
Tim Deegan [Fri, 2 Mar 2007 13:46:39 +0000 (13:46 +0000)]
[XEN] Remove a race condition in shadow mark_dirty code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Support new 'fast suspend' mode which does not require us to
kfraser@localhost.localdomain [Fri, 2 Mar 2007 12:11:52 +0000 (12:11 +0000)]
linux: Support new 'fast suspend' mode which does not require us to
hotplug all auxiliary CPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agotools: Advertise save/restore multiple VCPU contexts capability.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 12:11:10 +0000 (12:11 +0000)]
tools: Advertise save/restore multiple VCPU contexts capability.
This capability means that save/restore will remember contexts of all
online VCPUs at the time of final guest suspend. Any initialised but
offline VCPUs will not be saved!
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xenstored] Fix error path when xc_map_foreign_range fails.
Christian Limpach [Fri, 2 Mar 2007 11:25:12 +0000 (11:25 +0000)]
[xenstored] Fix error path when xc_map_foreign_range fails.
If xc_map_foreign_range fails, the new domain object is freed,
but it is not removed from the connection list.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoSave/restore context of all online VCPUs in PV save/restore/migrate.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 17:59:17 +0000 (17:59 +0000)]
Save/restore context of all online VCPUs in PV save/restore/migrate.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[tools] Set guest address size to be the same as dom0 address size on restore.
Christian Limpach [Thu, 1 Mar 2007 17:28:31 +0000 (17:28 +0000)]
[tools] Set guest address size to be the same as dom0 address size on restore.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Check that the cr3 mfn is valid before using it.
Christian Limpach [Thu, 1 Mar 2007 17:27:31 +0000 (17:27 +0000)]
[XEN] Check that the cr3 mfn is valid before using it.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: No need to kmem_cache_shrink(pgd_cache) on save/restore.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 15:56:45 +0000 (15:56 +0000)]
linux: No need to kmem_cache_shrink(pgd_cache) on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFully reset the xenstore connection when a domain is (re)introduced to xenstored.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 14:51:12 +0000 (14:51 +0000)]
Fully reset the xenstore connection when a domain is (re)introduced to xenstored.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Save/restore: remove bogus "valid state" check
Tim Deegan [Thu, 1 Mar 2007 14:00:05 +0000 (14:00 +0000)]
[HVM] Save/restore: remove bogus "valid state" check
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agohvm: Clean up console-information passing via xenstore.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:57:25 +0000 (13:57 +0000)]
hvm: Clean up console-information passing via xenstore.

Each serial, parallel and monitor device in qemu that is connected to
a pty creates a xenstore node of the form:
 <domain-path>/monitor/tty
 <domain-path>/serial/<n>/tty
 <domain-path>/parallel/<n>/tty

In addition, serial/0 (com1) also registers its information at:
 <domain-path>/console/tty

Also fix a realloc() failure memory leak.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agoFix Xend domain_lookup error report when looking up an invalid
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:48:31 +0000 (13:48 +0000)]
Fix Xend domain_lookup error report when looking up an invalid
domain: raise the correct error code (XendInvalidDomain instead of
XendError). Also remove redundance exception code that is handled by
domain_lookup.

Signed-off-by: Yung Giang <ygiang@gmail.com>
19 years agoacm: Fix the traversal of the event channel buckets and use the active
kfraser@localhost.localdomain [Thu, 1 Mar 2007 13:45:53 +0000 (13:45 +0000)]
acm: Fix the traversal of the event channel buckets and use the active
grant table entries instead of the shared ones. I had to move some
functions from grant_table.c into grant_table.h to make them usable by
the ACM module.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoCreate P2M map during Mini-OS boot (fixes 'xm dump-core').
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:44 +0000 (12:23 +0000)]
Create P2M map during Mini-OS boot (fixes 'xm dump-core').
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agoFix PAE Mini-OS build.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:04 +0000 (12:23 +0000)]
Fix PAE Mini-OS build.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agox86: No need to take full reference when doing mmu_update on a foreign
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:14:53 +0000 (12:14 +0000)]
x86: No need to take full reference when doing mmu_update on a foreign
domain. Also fix a pre-existing race setting PGT_pinned versus
clearing it during domain_kill().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Cleanups and bug fixes after the rcu_lock_domain patch.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 11:38:55 +0000 (11:38 +0000)]
xen: Cleanups and bug fixes after the rcu_lock_domain patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove Xen workaround for HVM builder now that it's fixed
Tim Deegan [Thu, 1 Mar 2007 11:08:49 +0000 (11:08 +0000)]
Remove Xen workaround for HVM builder now that it's fixed
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 1 Mar 2007 11:04:45 +0000 (11:04 +0000)]
Merge

19 years ago[HVM] Builder must know which kind of vcpu context struct to use
Tim Deegan [Thu, 1 Mar 2007 11:04:23 +0000 (11:04 +0000)]
[HVM] Builder must know which kind of vcpu context struct to use
when the tools are being run in a compat-mode domain
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Use RCU-based domain-locking functions where appropriate.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:44:40 +0000 (10:44 +0000)]
xen: Use RCU-based domain-locking functions where appropriate.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoxen: Last minute rename of RCU domain get/put functions:
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:32:52 +0000 (10:32 +0000)]
xen: Last minute rename of RCU domain get/put functions:
 find_domain_rcu_lock -> rcu_lock_domain_by_id
 domain_rcu_unlock    -> rcu_unlock_domain
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm/ia64: Fix IDE PIO acceleration.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:24:19 +0000 (10:24 +0000)]
hvm/ia64: Fix IDE PIO acceleration.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agoChange compat-check in set_vcpucontext again. Give caller leeway for
kfraser@localhost.localdomain [Thu, 1 Mar 2007 10:01:51 +0000 (10:01 +0000)]
Change compat-check in set_vcpucontext again. Give caller leeway for
HVM guests only.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix cset 14166
Tim Deegan [Thu, 1 Mar 2007 09:52:40 +0000 (09:52 +0000)]
[XEN] Fix cset 14166
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago Use stat to poll on phantom device until it becomes ready
Wim Colgate [Wed, 28 Feb 2007 20:35:36 +0000 (12:35 -0800)]
Use stat to poll on phantom device until it becomes ready

    Signed-off by Wim Colgate <wim@xensource.com>

19 years agolibxc: Quieten the discard_file_cache() function. Preserve errno
kfraser@localhost.localdomain [Wed, 28 Feb 2007 18:15:42 +0000 (18:15 +0000)]
libxc: Quieten the discard_file_cache() function. Preserve errno
across it. No longer make calls to the function dependent on 'non-live
save/restore': it's not a good test of whether the fd is a socket.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix init.d/xendomains startup script so log_error and log_success
kfraser@localhost.localdomain [Wed, 28 Feb 2007 18:06:56 +0000 (18:06 +0000)]
Fix init.d/xendomains startup script so log_error and log_success
will also work on redhat-based distributions before RHEL 5. See
discussion "xendomains init script" about a year ago on xen-devel.

Signed-off-by: Florian Kirstein <ray@ray.net>
19 years agolinux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
kfraser@localhost.localdomain [Wed, 28 Feb 2007 17:55:19 +0000 (17:55 +0000)]
linux: More save/restore fixes. Fix deadlock of cpu_hotplug_lock vs
workqueue_mutex. This is a new deadlock since the workqueue_mutex is
acquired in the workqueue_cpu_calbback() function across
CPU_UP_PREPARE->CPU_ONLINE.

The fix is for us not to rudely grab the cpu_hotplug_lock() during
save/restore -- it's really not necessary.

This patch is applicable to any of our 2.6 kernels, but is absolutely
required from 2.6.18 onwards.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN][SHADOW] Use slow method for early-unshadow
George Dunlap [Wed, 28 Feb 2007 16:13:49 +0000 (11:13 -0500)]
[XEN][SHADOW] Use slow method for early-unshadow

The "fast" method fails a significant portion of the time.
unshadow will still use the "fast" method, but will fall
back to a brute-force method if it fails.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years ago[XEN][SHADOW] Fix early-unshadow logic.
George Dunlap [Wed, 28 Feb 2007 16:11:22 +0000 (11:11 -0500)]
[XEN][SHADOW] Fix early-unshadow logic.

Make sure to reset the early-unshadow logic when we
do a fast-path propagate or when we emulate a non-zero
write.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years agohvm: Only do hvm_disable() on HVM-enabled systems.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:44:52 +0000 (14:44 +0000)]
hvm: Only do hvm_disable() on HVM-enabled systems.

Original patch by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Disable idle-loop alternatives.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:34:25 +0000 (14:34 +0000)]
linux: Disable idle-loop alternatives.

ACPI and APM idle functions in particular are not suitable choices
when running on Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Split suspend_mutex into watch_mutex and transaction_mutex.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:26:26 +0000 (14:26 +0000)]
linux: Split suspend_mutex into watch_mutex and transaction_mutex.
This clarifies their usage and relationship with request_mutex and
response_mutex.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMore PV save/restore fixes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 14:13:09 +0000 (14:13 +0000)]
More PV save/restore fixes.

Related changesets:
 14148:b67c253d1cdb4f502dec2
 13519:b4a8000e76db6b4b27341

These three changesets must be applied as a set!

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 32-bit x86 compile
Tim Deegan [Wed, 28 Feb 2007 13:22:20 +0000 (13:22 +0000)]
Fix 32-bit x86 compile

19 years ago[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Tim Deegan [Wed, 28 Feb 2007 13:19:16 +0000 (13:19 +0000)]
[XEN] Compat-mode dom0 always provides compat vcpu_guest_context structs.
Update arch_set_info_guest to do the right thing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Make the compat-mode l4 page table look more like a page table
Tim Deegan [Wed, 28 Feb 2007 13:17:27 +0000 (13:17 +0000)]
[XEN] Make the compat-mode l4 page table look more like a page table
and remove some special-case code in the shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] No need to change the compat mode of the guest in xen.
Christian Limpach [Wed, 28 Feb 2007 10:40:52 +0000 (10:40 +0000)]
[XEN] No need to change the compat mode of the guest in xen.
The tools set the compat mode already explicitly.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoLoop on actual elfnote array size rather than depending on ELFNOTE_MAX
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:44:59 +0000 (09:44 +0000)]
Loop on actual elfnote array size rather than depending on ELFNOTE_MAX
macro.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd suspend_cancel flag to linux elf notes.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:41:02 +0000 (09:41 +0000)]
Add suspend_cancel flag to linux elf notes.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd xm save -c/--checkpoint option
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:23 +0000 (09:39 +0000)]
Add xm save -c/--checkpoint option

xm save --checkpoint leaves the domain running after creating the
snapshot.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoLet xend choose to do hard or soft domain resumption depending on
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:39:03 +0000 (09:39 +0000)]
Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its
elfnotes.

Signed-off-by: Brendan Cully <brendan@kublai.com>
19 years agoFix off-by-one preventing the last elfnote from being read in xc.c.
kfraser@localhost.localdomain [Wed, 28 Feb 2007 09:38:14 +0000 (09:38 +0000)]
Fix off-by-one preventing the last elfnote from being read in xc.c.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>